<?php
include "../config/db_config.php";
?>
<html>
   <head>
    <title>Smart Commerce</title>
    <link href="../css/bootstrap.min.css" rel="stylesheet">
	<style type="text/css">
      body {
        padding-top: 60px;
        padding-bottom: 40px;
      }
    </style>
    <link href="../css/bootstrap-responsive.min.css" rel="stylesheet">
	<script src="../js/jquery-1.7.2.min.js"></script>
</head>
<body>
	<div class="navbar navbar-inverse navbar-fixed-top">
		<div class="navbar-inner">
			<div class="container">
			<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
			</a>
			
			<a class="brand" href="tampilan_home.php">Beranda</a>
			<a class="brand">Tentang Kami</a>
			<a class="brand">Kontak</a>
			
				<div class="nav-collapse collapse">
				<form class="navbar-form pull-right" method="post">
				</form>
							
			    </div>
			</div>
		</div>
    </div>
	
		<div class="container">
			<div class="hero-unit"style="background-image:url('../images/header.jpg');" >
				<h1>Smart Commerce</h1>
				<blockquote class="pull-right"> 
					<p>Website khusus Technopreneur Surabaya</p>
				</blockquote>
			</div>
	
	 <ul class="breadcrumb">
	  <li><a href="tampilan_home.php">Home</a> <span class="divider">/</span></li>
	  <li><a href="login.php">Login</a> <span class="divider">/</span></li>
	  <li class="active">Daftar</li>
	</ul>

	<?php
	if (!empty($_GET['message']) && $_GET['message'] == 'warning') {
    echo '<div class="alert alert-warning">Username sudah ada yang memiliki. Silahkan ulangi lagi<button class="close" data-dismiss="alert">&times;</button></div>';
	}
	?>
	
  <form class="form-inline" action="pencarian.php" method="post">
  <div class="input-append">
    <input class="input-xxlarge" style="height:30px; width:300px; margin-left:815px" name="pencarian" id="pencarian" type="text" placeholder="Kata Pencarian...">
	<button class="btn" type="submit" name="submit" id="submit" value="search">Cari</button>
  </div>
  </form>
  <br>
  <br>
	
	<form class="form-horizontal" method="POST" action="../proses_daftar.php">
	<div class="control-group">
    <label class="control-label" for="inputNama">Nama Lengkap*</label>
    <div class="controls">
      <input style="width:270px; height:30px" type="text" id="inputNama" name="nama" placeholder="Nama lengkap" maxlength="25" required="required">
    </div>
  </div>
  <div class="control-group">
    <label class="control-label" for="inputUser">Username*</label>
    <div class="controls">
      <input style="width:270px; height:30px" type="text" id="inputUser" name="username" required="required" aria-invalid="true">
    </div>
  </div>
  <div class="control-group">
    <label class="control-label" for="inputPassword">Password*</label>
    <div class="controls">
      <input style="width:270px; height:30px" type="password" id="inputPassword" name="password" required="required">
    </div>
  </div>
  <div class="control-group">
    <label class="control-label" for="inputEmail">Email*</label>
    <div class="controls">
      <input style="width:270px; height:30px" type="email" id="inputEmail" name="email" placeholder="ex: email@domain.com" required="required">
    </div>
  </div>
  <div class="control-group">
    <label class="control-label" for="inputTelpon">No.Telp</label>
    <div class="controls">
      <input class="numeric" style="width:270px; height:30px" type="text" id="inputTelpon" name="telpon">
    </div>
  </div>
  <div class="control-group">
    <label class="control-label" for="inputAlamat">Alamat</label>
    <div class="controls">
      <textarea class="input-xlarge" rows="5" name="alamat"></textarea><br>
    </div>
  </div>
  <div class="control-group">
    <label class="control-label" for="inputDeskripsi">Deskripsi Technopreneur</label>
    <div class="controls">
      <textarea class="input-xlarge" rows="5" name="deskripsi"></textarea><br>
    </div>
  </div>
  <div class="control-group">
    <div class="controls">
      <button type="submit" class="btn">Daftar</button>
	  <a href="tampilan_home.php" class="btn">Batal</a>
    </div>
  </div>
</form>
</div>
<script>
$(document).ready(function(){

	$(".numeric").keypress(function(event) {
	  // Backspace, tab, enter, end, home, left, right
	  // We don't support the del key in Opera because del == . == 46.
	  var controlKeys = [8, 9, 13, 35, 36, 37, 39];
	  // IE doesn't support indexOf
	  var isControlKey = controlKeys.join(",").match(new RegExp(event.which));
	  // Some browsers just don't raise events for control keys. Easy.
	  // e.g. Safari backspace.
	  if (!event.which || // Control keys in most browsers. e.g. Firefox tab is 0
		  (49 <= event.which && event.which <= 57) || // Always 1 through 9
		  (48 == event.which && $(this).attr("value")) || // No 0 first digit
		  isControlKey) { // Opera assigns values for control keys.
		return;
	  } else {
		event.preventDefault();
	  }
	});
});
</script>
  </body>
</html>